package com.snailhd.listener;

import com.snailhd.constant.ListenerEnums;
import com.snailhd.entity.StockDay;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author hd
 * @description
 * @date 2019-11-23 16:09
 */
@Component
public class StockDayListener {

    @Resource
    ListenerManager listenerManager;

    public void monitor(List<StockDay> list){
        for (Listener listener : listenerManager.getListener(ListenerEnums.STOCK_DAY)){
            listener.monitor(list);
        }
    }

}
